package com.jeeplus.modules.web.mapper;

import com.jeeplus.core.persistence.BaseMapper;
import com.jeeplus.core.persistence.annotation.MyBatisMapper;
import com.jeeplus.modules.web.entity.YjQrcodes;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author liangbing
 * @version 1.0
 * @date 2021/3/11 19:42
 * @description xxx
 */
@MyBatisMapper
public interface YjQrcodesMapper extends BaseMapper<YjQrcodes> {

    Long count(YjQrcodes yjQrcodes);

    Long getInUseCount(@Param("ids") List<String> ids, @Param("delFlag") String delFlag);

    int batchCreateQrcode(@Param("qrcodesList") List<YjQrcodes> qrcodesList);

    List<YjQrcodes> fetchNoImageQrCodes(@Param("delFlag") String delFlag);

    /**
     * 以ids列表获取对应的二维码列表
     * @param idsList
     * @return
     */
    List<YjQrcodes> getQrCodesByIds(@Param("ids") List<String> idsList);

}
